import datasource.ErrorType;
import datasource.TokenType;


public class Token {
	private String value = "";
	private TokenType type = null;
	private int lineNumber;
	private ErrorType error;
	
	public Token(String value,TokenType type,int lineNumber,ErrorType error){
		this.value = value;
		this.type = type;
		this.lineNumber = lineNumber;
		this.error = error;
	}
	public Token(){}
	
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public TokenType getType() {
		return type;
	}
	public void setType(TokenType type) {
		this.type = type;
	}
	public int getLineNumber() {
		return lineNumber;
	}
	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}

	public ErrorType getError() {
		return error;
	}

	public void setError(ErrorType error) {
		this.error = error;
	}

	
}
